import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'test-ng-if',
  templateUrl: './test-ng-if.component.html',
  styleUrls: ['./test-ng-if.component.css']
})
export class TestNgIfComponent implements OnInit {

  public isShow:boolean=true;
  constructor() { }

  ngOnInit() {
  }

  public toggleShow(){
    this.isShow=!this.isShow;
  }

}
